/**
 * @description: 仪表盘
**/

// 会员基础信息
.card1 {
  padding: 10px 15px;
  background: linear-gradient(0deg, transparent, transparent),
    linear-gradient(135deg, rgba(59, 130, 246, 0.2) 1%, #eff6ff);
  .logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(51, 51, 51, 0.304);
    flex-shrink: 0;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      vertical-align: middle;
    }
  }
  .user-info {
    padding-left: 20px;
    a {
      font-size: 12px;
    }
    h3 {
      font-size: 20px;
    }
    span {
      font-size: 12px;
      color: rgb(107, 114, 128);
      line-height: 12px;
    }
  }
}

.card2,
.card3,
.card4,
.card5 {
  // min-height: 120px;
  border-radius: 2px;
  color: white;
  img.before-icons {
    width: 16px;
    max-height: 16px;
    vertical-align: middle;
  }
  .bgc {
    position: absolute;
    right: 0;
    bottom: 0;
    img {
      height: 80px;
    }
  }
  h3 {
    font-size: 60px;
    line-height: 72px;
  }
}

// 当日充值人数
.card2 {
  background: linear-gradient(0deg, transparent, transparent),
    linear-gradient(135deg, #a855f7 3%, #9333ea 99%);
}

.card3 {
  background: linear-gradient(0deg, transparent, transparent),
    linear-gradient(135deg, #3b82f6 1%, #2563eb);
}

.card4 {
  background: linear-gradient(0deg, transparent, transparent),
    linear-gradient(135deg, #22c55e 3%, #16a34a 99%);

  .total-customers {
    color: yellow;
  }
}
.card5 {
  background: linear-gradient(0deg, transparent, transparent),
    linear-gradient(135deg, #f59e0b 1%, #d97706);
}

// 产品信息（数据信息）
.product-wrapper {
  .layui-card-header {
    color: #242f57;
    font-weight: bold;
  }
}
.product-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(249, 250, 251);
    padding: 10px 5px;
    strong {
      font-weight: bold;
      font-size: 25px;
      color: rgb(59, 130, 246);
    }
    span {
      font-size: 14px;
      color: rgb(107, 114, 128);
      line-height: 20px;
    }
    &:nth-child(2) {
      strong {
        color: rgb(239, 68, 68);
      }
    }
    &:nth-child(3) {
      strong {
        color: rgb(34, 197, 94);
      }
    }
    &:nth-child(4) {
      strong {
        color: rgb(234, 179, 8);
      }
    }
  }
}

// 上级
.manager {
  &-container {
    img.before-icons {
      width: 16px;
      vertical-align: middle;
    }
    .my-contact {
      margin-top: 10px;
    }
    .pear-icon-copy {
      opacity: 0.6;
    }
  }

  &-pic {
    width: 40px;
    height: 40px;
    background-color: rgba(51, 51, 51, 0.372);
    border-radius: 50%;
    overflow: hidden;
    img {
      width: 100%;
    }
  }

  &-infos {
    &__name {
      font-weight: bold;
    }
    &__contact {
      font-size: 12px;
      color: rgb(107, 114, 128);
    }
  }

  &-number-box {
    column-gap: 10px;
    padding: 8px 15px;
    margin-top: 10px;
    border-radius: 8px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      linear-gradient(135deg, rgb(236, 253, 245) -6%, rgb(240, 253, 244) 100%);

    & > div {
      width: 50%;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      column-gap: 10px;
      align-items: center;
      span:nth-child(2) {
        flex: 1;
        font-size: 12px;
      }
    }
  }
}

// 公告列表
.notice {
  &-list {
    li {
      border-bottom: 1px solid rgb(243, 244, 246);
      cursor: pointer;
      &:last-child {
        border-bottom: none;
      }
    }
  }
  &__title {
    font-size: 14px;
    font-weight: bold;
    color: rgb(36, 47, 87);
    margin-bottom: 3px;
  }
  &__time {
    font-size: 12px;
    color: rgb(134, 148, 173);
  }
  &-scroll {
    height: 100%;
    overflow: auto;
  }
}

// 推广链接
.promotion-link {
  gap: 10px;
  button {
    &:first-child {
      flex: 1;
    }
  }
}

// 推广链接-弹窗
.my-promotion-link {
  padding: 10px 20px;
  &__tips {
    padding: 10px;
    margin-bottom: 20px;
    background: rgb(254, 247, 237);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  }
  &__operation {
    padding: 0 0 20px;
  }
}

// 推广链接-设置
.promotion-link-setting-wrapper {
  padding: 10px 20px;
  .remark {
    label {
      white-space: nowrap;
      flex-shrink: 0;
    }
    input {
      flex: 1;
    }
  }
  .layui-form-label {
    width: 100px;
  }

  .layui-input-block {
    margin-left: 130px;
    .tips {
      user-select: none;
      height: 100%;
      background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        linear-gradient(
          135deg,
          rgba(59, 130, 246, 0.2) 1%,
          rgb(239, 246, 255) 100%
        );
      padding: 10px;
      border-radius: 4px;
      margin-bottom: 10px;
      color: #606266;
      font-size: 14px;
      span {
        font-weight: bold;
        color: rgb(59, 130, 246);
      }
    }
  }
}

.set-my-contact {
  padding: 20px;
  padding-left: 0;
}

.setlink-box {
  overflow: hidden;
  .pear-btn {
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}